# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-python-rle
_pkgname=python-rle
pkgver=0.0.3
_pyver=3.13
pkgrel=7
pkgdesc='Run-length encoding for data analysis in Python..'
arch=('any')
url='https://pypi.org/project/python-rle/#files'
license=('MIT')
depends=('python' 'python-tqdm')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('a261b8991eb7f3498c0730deabc8a0cb62d7c5670a2ce8ac96e8cf288533eb3e691467faf9defcce51c496032f66e8739862580e6cd97ceee17bb33f0d4cc05e')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  rm -rf "$pkgdir/usr/lib/python$_pyver/site-packages/tests/"
}

